Why actionPerformed is executed by two Threads